<?php /* Smarty version Smarty-3.0.7, created on 2011-07-13 18:50:33
         compiled from ".\templates\envios.tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:222394e1e132949e0e6-37515237%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '561ba03147936daaf0fbf7faf860fb3b24609478' => 
    array (
      0 => '.\\templates\\envios.tpl.html',
      1 => 1310512672,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '222394e1e132949e0e6-37515237',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_truncate')) include 'C:\xampp\htdocs\socialcrm\libs\smarty\plugins\modifier.truncate.php';
?><div align="justify" style="font-size:12px; color:#222222; padding: 2px 30px 30px 30px;">

    <center>
        <div style="height:40px; padding-bottom: 5px;">
            <table border="0px">
                <tr>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="envios.php?do=add">
                        <img  src="img/add.png"  class="redsocial_icon" title="Nuevo Envio" border="0" alt="Nuevo Envio" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="envios.php">
                        <img  src="img/search.png"  class="redsocial_icon" title="Buscar Envio" border="0" alt="Buscar Envio" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="envios.php">
                        <img  src="img/piechart.png"  class="redsocial_icon" title="Ver Reportes de Envios" border="0" alt="Ver Reportes de Envios" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="configuraciones.php">
                        <img  src="img/profile.png"  class="redsocial_icon" title="Editar Configuraci&oacute;n de Usuario" border="0" alt="Editar Configuraci&oacute;n de Usuario" width="30" height="30">
                    </a>
                    </div>
                    </td>
                </tr>
            </table>
        </div>
    </center>
    <center>
        <div id="buscador">          
            <table width="100%" border="0px">
              <form action="envios.php?do=buscar" method="post" enctype="multipart/form-data" name="form1" id="form1">
              <tr>
                <td><div align="center" style="float:left;padding: 5px 5px 5px 5px; width:100px;"></div></td>
                <td><div align="center">
                  <label>
                  <div>
                  	<div align="left" style="float:left;padding: 5px 5px 5px 5px;"><strong>Buscar por:</strong></div>
                  	<div align="right" style="float:left;padding: 5px 5px 5px 5px;">
                    	<input name="txtbuscar" type="text" id="txtbuscar" size="50" maxlength="50" />
                    </div>
                  </div>
                  </label>
                </div></td>
                <td>
                  <div>
                  <div align="left" style="float:left;padding: 5px 5px 5px 5px;"><strong>En:</strong></div>
                    <div align="right" style="float:left;padding: 5px 5px 5px 5px;">
                    <select name="lstopciones" size="1" id="lstopciones" style="width: 200px;">
                      <option value="env_descripcion" selected="selected">Descripcion</option>
                      <option value="cam_titulo">Campa&ntilde;a</option>
                      <option value="can_nombre">Canal</option>
                      <option value="est_descripcion">Estado</option>
                      <option value="usr_username">Usuario</option>
                      <option value="env_fecha">Fecha</option>
                    </select>
                    </div>
                  </div>                </td>
                <td>
                <div align="center" style="float:left;">
                  <label>
                  <input type="submit" name="btnbuscar" class="boton_buscar" value="Buscar" />
                  </label>
                </div> 
                </td>
              </tr>
              </form>
              <tr>
                <td colspan="4">
                <div id="abecedario">
                  <div>
                  <table width="100%" border="0">
                    <tr align="center">
                    <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('abecedario')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                      <td>
                      <div id="<?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
" style="border:solid 1px #999999; width:80%; text-align:center; padding:3px;background:#FFFFFF;">
                      <a href="envios.php?do=buscarletra&let=<?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
"><?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
</a>
                      </div>
                      </td>
                    <?php endfor; endif; ?>
                    </tr>
                  </table>
                  </div>
                </div>
                </td>
              </tr>
            </table>
        </div>
        </center>                


        <div style="padding: 10px 10px 10px 10px">
            <table class="lista">
              <tr>
                <th width="1%">C&oacute;digo</th>
                <th width="20%">Descripci&oacute;n</th>
                <th width="8%">Fecha</th>
                <th width="1%">Objetivos</th>
                <th width="8%">Asignado a</th>
                <th width="20%">Campa&ntilde;a</th>
                <th width="8%">Estado</th>
                <th width="10%">Canal</th>
                <th width="10%">Accion</th>
              </tr>
              <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listaenvios')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
              <tr> 		
                  <td align="center"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
</td>
                <td>
                    <a href="envios.php?do=ver&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
" style="color:#003366;">
                    <?php echo smarty_modifier_truncate(utf8_encode($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_descripcion']),25,"...",true);?>

                    </a>
                </td>
                <td align="center"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_fecha'];?>
</td>
                <td align="center"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_total_objetivo'];?>
</td>
                <td align="center"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['usr_username'];?>
</td>
                <td><?php echo smarty_modifier_truncate(utf8_encode($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_titulo']),25,"...",true);?>
</td>
                <td align="center">
                    
                    <?php if ($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']=="Enviado"){?>
                     <div style="background-color: #CCFF99;"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion'];?>
</div>
                    <?php }elseif($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']=="Pendiente"){?>
                     <div style="background-color: #FFFF66;"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion'];?>
</div>    
                    <?php }elseif($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']=="Cancelado"){?>
                     <div style="background-color: #FFFFCC;"><?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion'];?>
</div>
                    <?php }else{ ?>
                    	<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion'];?>
	 
                    <?php }?>
                </td>
                <td>
                    <?php if ($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']=="Twitter"){?>
                    <img class="redsocial_icon" title="Twitter" border="0" alt="Twitter" align="left" src="img/twt.png" width="14" height="14">
                    <?php }elseif($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']=="Facebook"){?>
                    <img class="redsocial_icon" title="Facebook" border="0" alt="Facebook" align="left" src="img/fb.jpg" width="14" height="14">    
                    <?php }elseif($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']=="Mailling"){?>
                    <img class="redsocial_icon" title="Mailing" border="0" alt="Mailing" align="left" src="img/mailling.png" width="14" height="14">
                    <?php }elseif($_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']=="LinkedIn"){?>
                    <img class="redsocial_icon" title="LinkedIng" border="0" alt="LinkedIn" align="left" src="img/in.png" width="14" height="14">
                    <?php }?>
                    <?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre'];?>

                </td>
                <td align="center">
                <a href="procesar.php?do=enviar&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
"><img src="img/start.png" title="Ejecutar Envio" border="0" alt="Ejecutar Envio" width="20" height="20"></a>
                <a href="procesar.php?do=cancelar&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
"><img src="img/stop.png" title="Cancelar Envio" border="0" alt="Cancelar Envio" width="20" height="20"></a>
                <a href="envios.php?do=mod&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
"><img src="img/modify.png" title="Modificar" border="0" alt="Modificar" width="20" height="20"></a>                
                <a href="envios.php?do=dell&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
"><img src="img/remove.png" title="Eliminar" border="0" alt="Eliminar" width="20" height="20"></a>
                <!--
                <a href="envios.php?do=mod&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
">Editar</a>
                <a href="envios.php?do=dell&id=<?php echo $_smarty_tpl->getVariable('listaenvios')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['env_cod'];?>
">Eliminar</a>-->
                </td>                                                     
              </tr>
             <?php endfor; endif; ?>
            </table>
        </div>


        
        <h2 style="font-size:12px; color:#222222;">SOCIAL CRM Envios</h2>
       <p>
        	SOCIAL CRM es un Sistema de Gesti&oacute;n y Administraci&oacute;n de Campa&ntilde;as publicitarias para peque&ntilde;as y medianas empresas, desde un enfoque de SOCIAL MEDIA.
                Se gestionar&aacute; publicaciones autom&aacute;ticas en las Redes Sociales de mayor difusi&oacute;n como Faceboook, Twitter and Linkedin por cada env&iacute;o de publicidad realizado.
        </p>
</div>